package com.sxbbc.common.core.entity.jz;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 油卡、话费充值明细表
 * </p>
 *
 * @author 
 * @since 2019-10-24
 */
public class CRechageDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 充值类型，1话费充值 2加油卡充值
     */
    private Integer type;

    /**
     * 设置金额id
     */
    private Integer amountsetId;

    /**
     * 下单用户id
     */
    private Integer cid;

    /**
     * 充值号码
     */
    private String phone;

    /**
     * 充值名称
     */
    private String rechargename;

    /**
     * 话费充值金额
     */
    private BigDecimal rechargemoney;

    /**
     * 实际付款金额
     */
    private BigDecimal realmoney;

    /**
     * 油卡产品id，10000(中石化50元加油卡)[暂不支持]、10001(中石化100元加油卡)、10003(中石化500元加油卡)、10004(中石化1000元加油卡)、
     * 10007(中石化任意金额充值)[暂不支持]、10008(中石油任意金额充值)
     */
    private Integer proid;

    /**
     * 充值数量（产品id为10007、10008时为具体充值金额(整数)，其余产品id请传固定值1）
     */
    private Integer cardnum;

    /**
     * 商家订单号，8-32位字母数字组合
     */
    private String ordercode;

    /**
     * 持卡人姓名
     */
    private String gascardname;

    /**
     * 加油卡类型 （1:中石化、2:中石油；默认为1)
     */
    private Integer chargetype;

    /**
     * 加油卡卡号，中石化：以100011开头的19位卡号、中石油： 以90开头的16位卡号
     */
    private String gameuserid;

    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 交易单号
     */
    private String paycode;

    /**
     * 运营商
     */
    private Integer operator;

    /**
     * 聚合订单号
     */
    private String jhOrdercode;

    /**
     * 聚合充值状态
     */
    private Integer rechargeStatus;

    /**
     * 充值失败原因
     */
    private String errorMessage;

    /**
     * 查询条件-开始时间
     */
    @TableField(exist = false)
    private String start;

    /**
     * 查询条件-结束时间
     */
    @TableField(exist = false)
    private String end;

    /**
     * 查询时间
     */
    @TableField(exist = false)
    private String queryTime;

    /**
     * 用户账号
     */
    @TableField(exist = false)
    private String cPhone;

    public String getcPhone() {
        return cPhone;
    }

    public void setcPhone(String cPhone) {
        this.cPhone = cPhone;
    }

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public String getQueryTime() {
        return queryTime;
    }

    public void setQueryTime(String queryTime) {
        this.queryTime = queryTime;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public String getJhOrdercode() {
        return jhOrdercode;
    }

    public void setJhOrdercode(String jhOrdercode) {
        this.jhOrdercode = jhOrdercode;
    }

    public Integer getRechargeStatus() {
        return rechargeStatus;
    }

    public void setRechargeStatus(Integer rechargeStatus) {
        this.rechargeStatus = rechargeStatus;
    }

    public Integer getAmountsetId() {
        return amountsetId;
    }

    public void setAmountsetId(Integer amountsetId) {
        this.amountsetId = amountsetId;
    }

    public Integer getOperator() {
        return operator;
    }

    public void setOperator(Integer operator) {
        this.operator = operator;
    }

    public String getRechargename() {
        return rechargename;
    }

    public void setRechargename(String rechargename) {
        this.rechargename = rechargename;
    }

    public String getGascardname() {
        return gascardname;
    }

    public void setGascardname(String gascardname) {
        this.gascardname = gascardname;
    }

    public BigDecimal getRealmoney() {
        return realmoney;
    }

    public void setRealmoney(BigDecimal realmoney) {
        this.realmoney = realmoney;
    }

    public String getPaycode() {
        return paycode;
    }

    public void setPaycode(String paycode) {
        this.paycode = paycode;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public BigDecimal getRechargemoney() {
        return rechargemoney;
    }

    public void setRechargemoney(BigDecimal rechargemoney) {
        this.rechargemoney = rechargemoney;
    }
    public Integer getProid() {
        return proid;
    }

    public void setProid(Integer proid) {
        this.proid = proid;
    }
    public Integer getCardnum() {
        return cardnum;
    }

    public void setCardnum(Integer cardnum) {
        this.cardnum = cardnum;
    }
    public String getOrdercode() {
        return ordercode;
    }

    public void setOrdercode(String ordercode) {
        this.ordercode = ordercode;
    }

    public Integer getChargetype() {
        return chargetype;
    }

    public void setChargetype(Integer chargetype) {
        this.chargetype = chargetype;
    }

    public String getGameuserid() {
        return gameuserid;
    }

    public void setGameuserid(String gameuserid) {
        this.gameuserid = gameuserid;
    }
    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "CRechageDetail{" +
        "id=" + id +
        ", type=" + type +
        ", cid=" + cid +
        ", phone=" + phone +
        ", rechargemoney=" + rechargemoney +
        ", proid=" + proid +
        ", cardnum=" + cardnum +
        ", ordercode=" + ordercode +
        ", chargetype=" + chargetype +
        ", gameuserid=" + gameuserid +
        ", createtime=" + createtime +
        "}";
    }
}
